import db from '@/utils/localstorage'
export default {
  namespaced: true,
  state: () => ({
    // 菜单列表
    menuGroup: db.get('menuGroup') || [],
    //菜单折叠状态
    collapse: db.get('collapse',false)
  }),
  mutations:{
    setCollapse(state, val) {
      db.save('collapse', val)
      state.collapse = val
    },
  }
}